package com.gee.spring.boot.rpf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.gee.spring.boot.rpf.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonView;
/**
 * <p>
 *  实体类
 * 临时变量
 * </p>
 *
 * @author gee
 * @since 2021-02-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TempVariableInfo对象", description="临时变量")
public class TempVariableInfo extends BaseEntity<TempVariableInfo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "流水号")
    @TableId(value = "serialNo", type = IdType.AUTO)
    @JsonView
    private Long serialNo;

    @ApiModelProperty(value = "变量名")
    @TableField("variableName")
    @JsonView
    private String variableName;


    @ApiModelProperty(value = "变量类型1-String, 2-Integer, 3-Double")
    @TableField("variableType")
    @JsonView
    private Integer variableType;

    @ApiModelProperty(value = "变量计算器BeanName")
    @TableField("calculatorBeanName")
    @JsonView
    private String calculatorBeanName;

    @ApiModelProperty(value = "是否在用: 0-不在用, 1-在用")
    @TableField("inUse")
    @JsonView
    private Integer inUse;


    @Override
    public Serializable pkVal() {
        return this.serialNo;
    }

}